package org.xdq.装饰模式;

import org.xdq.装饰模式.impl.ReadingDecorator;
import org.xdq.装饰模式.impl.SingDecorator;
import org.xdq.装饰模式.impl.Student;

public class Test {

    static void test(Person person){
        person.work();
    }

    public static void main(String[] args) {
        Person p = new ReadingDecorator(new SingDecorator(new Student()));
        test(p);
    }
}
